export function help() {
  const pkg = require('../package.json')
  console.log()
  console.log(` Usage:\x1b[34;1m carefree-convert\x1b[0m <command>`)
  console.log(` Version ${pkg.version}`)
  console.log()
  console.log(' Commands:')
  console.log()
  console.log(
    '  \x1b[35;1m carefree-convert\x1b[0m build [options]       Build your project once and exit.',
  )
  console.log(
    '  \x1b[35;1m carefree-convert\x1b[0m watch [options]       Recompile files on changes.',
  )
  console.log()
  console.log(` Options:[build|watch]`)
  console.log()
  console.log(
    `   \x1b[35;1m--entry, -e\x1b[0m                Specify the entry directory.`,
  )

  console.log(
    `   \x1b[35;1m--output, -o\x1b[0m                Specify the output directory.`,
  )

  console.log()
  console.log(` Options:`)
  console.log()
  console.log(
    '   \x1b[35;1m--version, -v\x1b[0m              Show version number',
  )
  console.log('   \x1b[35;1m--help, -h\x1b[0m                 Show help')
  console.log()
  console.log(` Examples:`)
  console.log()
  console.log(
    `   $\x1b[35;1m carefree-convert\x1b[0m build                           Build your project.`,
  )
  console.log(
    `   $\x1b[35;1m carefree-convert\x1b[0m build --entry src      Specify the entry directory.`,
  )
  console.log(
    `   $\x1b[35;1m carefree-convert\x1b[0m watch                           watch your project.`,
  )

  console.log()
  console.log(' Copyright 2022')
  console.log()
}
